package com.ruoyi.system.task;

import com.github.pagehelper.PageInfo;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.domain.PoPublicOpinion;
import com.ruoyi.system.domain.PublicOpinionEvents;
import com.ruoyi.system.service.*;
import com.ruoyi.system.service.impl.EsUtil;
import com.ruoyi.system.service.impl.NlpcUtil;
import org.elasticsearch.search.builder.SearchSourceBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.net.ConnectException;
import java.util.List;


/**
 * 预警定时任务调度
 * 
 * @author ruoyi
 */
@Component("eventTask")
public class EventTask
{

    @Autowired
    private IPublicOpinionEventsService publicOpinionEventsService;
    @Autowired
    private EsUtil esUtil;
    @Autowired
    private NlpcUtil nlpcUtil;

    /**
     * 根据事件生成报告
     * @param eventId
     */
    public void timingQueryEvent(Long eventId)
    {

    }

    /**
     * 指定模板
     * 根据事件生成报告
     * @param eventId
     * @param templateId
     */
    public void timingQueryEvent(Long eventId,Long templateId,String type)
    {

    }



}
